from flask_sqlalchemy import SQLAlchemy
from app import app


app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+pymysql://suseonline:o8O0a4C9hkj45j9B@10.0.1.8:3306/suse"
# app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+pymysql://root:18728579825yaoQQ@127.0.0.1:3306/student"
# 每次请求结束后自动提交数据
app.config['SQLALCHEMY_COMMIT_ON_TEAMDOWN'] = True
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SQLALCHEMY_ECHO'] = False
db = SQLAlchemy(app)
